<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="__PUBLIC__/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/lib/Validform/5.3.2/style.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>添加管理员</title>
</head>
<body>
<div class="pd-20">
	<form action="" method="post" class="form form-horizontal" id="form-admin-add">
		<input type="hidden" value="{$the_user['id']}" name="id">
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>账户：</label>
			<div class="formControls col-5">
				<input type="text" class="input-text" value="{$the_user['user_name']}" placeholder="" id="user_name" name="user_name" datatype="*2-16" errormsg="账户必须为2到16个字符">
			</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>真实姓名：</label>
			<div class="formControls col-5">
				<input type="text" class="input-text" value="{$the_user['realname']}" placeholder="" id="user_name" name="realname" datatype="*2-10" errormsg="真实姓名必须为2到10个字符">
			</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>初始密码：</label>
			<div class="formControls col-5">
				<if condition="$the_user['id'] eq null">
					<input type="password" placeholder="密码" autocomplete="off" value=""  class="input-text" datatype="*6-20" nullmsg="密码不能为空" errormsg="密码为6到20个字符" name="password">
				<else />
					<input type="password" placeholder="为空即为不修改密码" autocomplete="off" value=""  class="input-text"  name="password">
				</if>
				
			</div>
			<div class="col-4"> </div>
		</div>
		<!-- <div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>确认密码：</label>
			<div class="formControls col-5">
				<input type="password" placeholder="确认新密码" autocomplete="off" class="input-text Validform_error" errormsg="您两次输入的新密码不一致！" datatype="*" nullmsg="请再输入一次新密码！" recheck="newpassword" id="newpassword2" name="newpassword2">
			</div>
			<div class="col-4"> </div>
		</div> -->
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>性别：</label>
			<div class="formControls col-5 skin-minimal">

				<if condition="$the_user['sex'] eq 1">
					<div class="radio-box">
						<input type="radio" id="sex-1" name="sex" class="sex"  value="0">
						<label for="sex-1">男</label>
					</div>
					<div class="radio-box">
						<input type="radio" id="sex-2" name="sex" class="sex" value="1" datatype="*" nullmsg="请选择性别！" checked="checked">
						<label for="sex-2">女</label>
					</div>
				<else />
					<div class="radio-box">
						<input type="radio" id="sex-1" name="sex" class="sex"  value="0" checked="checked">
						<label for="sex-1">男</label>
					</div>
					<div class="radio-box">
						<input type="radio" id="sex-2" name="sex" class="sex" value="1" datatype="*" nullmsg="请选择性别！">
						<label for="sex-2">女</label>
					</div>

				</if>
				
			</div>
			<div class="col-4"></div>
		</div>
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>手机：</label>
			<div class="formControls col-5">
				<input type="text" class="input-text" value="{$the_user['mobile']}" placeholder="" id="mobile" name="mobile"  datatype="m" nullmsg="手机不能为空" errormsg="请输入正确的手机号">
			</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>邮箱：</label>
			<div class="formControls col-5">
				<input type="text" class="input-text" placeholder="@" name="email" id="email" datatype="e" nullmsg="请输入邮箱！" value="{$the_user['email']}" errormsg="请输入正确的邮箱">
			</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>角色：</label>
			<div class="formControls col-5"> <span class="select-box" style="width:150px;">
				<select class="select" name="role_id" id="role_id" size="1" datatype="*" nullmsg="请选择角色">
					<volist name="roles" id="vo">
						<option value="{$vo.id}">{$vo.name}</option>
					</volist>
				</select>
				</span> </div>
		</div>
		<div class="row cl skin-minimal">
			<label class="form-label col-3">是否启用</label>
			<div class="formControls col-5">
				<if condition="$the_user['is_active'] eq 1">
					<input type="checkbox" id="is_active" name="is_active" value="1" checked="checked">
				<else />
					<input type="checkbox" id="is_active" name="is_active" value="1">
				</if>
			 	
			</div>
		</div>


		
		<div class="row cl">
			<label class="form-label col-3">备注：</label>
			<div class="formControls col-5">
				<textarea name="" cols="" rows="" class="textarea"  placeholder="说点什么...100个字符以内" dragonfly="true" value="" onKeyUp="textarealength(this,100)"></textarea>
				<p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>
			</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<div class="col-9 col-offset-3">
				<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
				<!-- <span class="btn btn-primary radius sub">&nbsp;&nbsp;提交&nbsp;&nbsp;</span> -->
			</div>
		</div>
	</form>
</div>
<script type="text/javascript" src="__PUBLIC__/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="__PUBLIC__/lib/icheck/jquery.icheck.min.js"></script> 
<script type="text/javascript" src="__PUBLIC__/lib/Validform/5.3.2/Validform.min.js"></script> 
<script type="text/javascript" src="__PUBLIC__/lib/layer/2.1/layer.js"></script> 
<script type="text/javascript" src="__PUBLIC__/js/H-ui.js"></script> 
<script type="text/javascript" src="__PUBLIC__/js/H-ui.admin.js"></script> 
<script type="text/javascript" src="Tpl/Admin/common/user_add/dataAjax.js"></script> 
<script src="http://cdn.bootcss.com/jquery.form/3.51/jquery.form.min.js"></script>
<script type="text/javascript">
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
			
});
</script>
</body>
</html>